import Vue from 'vue'
import Router from 'vue-router'
import GoodsList from '../components/GoodsList.vue'
import Shopcart from '../components/Shopcart.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: GoodsList
    },
    {
      path: "/goodslist",
      component: GoodsList
    },
    {
      path: "/shopcart",
      component: Shopcart
    }
  ]
})
